package com.joven.interface3.webservice.impl;

import com.joven.interface3.webservice.CommonService;
import org.springframework.stereotype.Component;

import javax.jws.WebService;

/**
 * @author joven_wong
 * 2021/6/25 15:54
 */
@WebService(serviceName = "CommonService", // 与接口中指定的name一致
        targetNamespace = "http://webservice.interface3.joven.com/", // 与接口中的命名空间一致,一般是接口的包名倒
        endpointInterface = "com.joven.interface3.webservice.CommonService"// 接口地址
)
@Component
public class CommonServiceImpl implements CommonService {

    @Override
    public String sayHello(String name) {
        return "webservice say hello " + name;
    }
}
